import tableServiceAbstract from "@/core/table/tableService.interface";
export default class insuranceCompanyService implements tableServiceAbstract {
  getTable(): Promise<any> {
    return new Promise((resolve) => {
      resolve({
        code: 200,
        data: {
          total:10,
          data:[
            {
              id:1,
              username:'13755884837',
              money:'10000',
              type:1,
            }
          ]
        },
        msg: 'success',
      });
    })
  }
  delete(params: any): Promise<any> {
    return new Promise((resolve) => {
      resolve({
        data: {
          code: 200,
          data: {},
          msg: 'success',
        }
      });
    })
  }
  add(params: any): Promise<any> {
    return new Promise((resolve) => {
      resolve({
        data: {
          code: 200,
          data: {},
          msg: 'success',
        }
      });
    })
  }
  edit(params: any): Promise<any> {
    return new Promise((resolve) => {
      resolve({
        data: {
          code: 200,
          data: {},
          msg: 'success',
        }
      });
    })
  }
  detail(params: any): Promise<any> {
    return new Promise((resolve) => {
      resolve({
        data: {
          code: 200,
          data: {},
          msg: 'success',
        }
      });
    })
  }
}